import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
// 导入element-plus的icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'

// 处理鼠标滚轮事件监听器的性能警告
document.addEventListener('mousewheel', (event) => {}, { passive: true });
document.addEventListener('wheel', (event) => {}, { passive: true });

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.use(router)

app.mount('#app')
